package com.htlwk.javapractice;

import java.util.function.Supplier;

/**
 * @ClassName SupplierDemo
 * @Description TODO
 * @Author liaowenxiong
 * @Date 2024/12/23 18:55
 * @Version 1.0
 */
public class SupplierDemo {
    public static void main(String[] args) {
        System.out.println(getString(() -> "Hello World"));
    }

    public static String getString(Supplier<String> s) {
        return s.get();
    }
}
